// SimpThread.h: interface for the CSimpThread class.
//
//
//////////////////////////////////////////////////////////////////////

#ifndef _SIMPTHREAD_H_
#define _SIMPTHREAD_H_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "windows.h"
#include "MySyncObjs.h"


//////////////////////////////////////////////////////////////////////
typedef unsigned (__stdcall *SIMPTHREAD_FUNC)(void *);


//////////////////////////////////////////////////////////////////////
class CSimpThread  
{
protected:
	CSimpThread();
public:
	virtual ~CSimpThread();

protected:
	static BOOL		s_fTerminated;

//	static DWORD WINAPI RunThread(LPVOID pThreadParameter);
	
public:
	static BOOL		IsClose()	{ return s_fTerminated; }
	static void		Close()		{ s_fTerminated = TRUE; }
	static BOOL		Create(SIMPTHREAD_FUNC func, void* pParam);
};

#endif // defined _SIMPTHREAD_H_
